Android edittext right align [closed]
Posted
by
Yoav
on Programmers
See other posts from Programmers
or by Yoav
Published on 2012-03-29T06:33:11Z
Indexed on
2012/03/29
11:42 UTC
Read the original article
Hit count: 273
android
|right-to-left
I am using my application with hebrew (right-to-left) layout.
I have a feature where I open an activity with EditText in it - where I put some text (previously entered by the user) to be edited by him.
However, when I do setText
I find out that the text is aligned to the left of the edittext instead of of the right. (If I start with empty edittext then it is automatically right aligned when user starts inputting hebrew, but cursor is positioned to the left)
(android:gravity="right" does not work)
© Programmers or respective owner